package com.letoken.platform.repo.app.req.mall;

import com.letoken.platform.pub.annotation.content.ContentCheck;
import com.letoken.platform.pub.annotation.content.ContentEnum;
import com.letoken.platform.pub.annotation.sms.AccountCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jnr.ffi.annotations.In;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel(value = "商家入驻申请", description = "商家入驻申请对象")
public class MallSettleInStep1Req implements Serializable {


    @ApiModelProperty("店铺ID 当修改的时候需要传递")
    private Integer mallId;



    @ApiModelProperty("店铺名称")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 255,message = "80407023")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407032")
    private String mallName;

    @ApiModelProperty("店铺地址")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 255,message = "80407023")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407033")
    private String mallAddress;

    @ApiModelProperty("店铺详细地址")
    @NotBlank(message = "80000007")
//    @Length(min = 1,max = 255,message = "80407023")
//    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407033")
    private String mallAddressInfo;



    @ApiModelProperty("店铺经度")
    @NotNull(message = "80000007")
    private BigDecimal longitude;


    @ApiModelProperty("店铺纬度")
    @NotNull(message = "80000007")
    private BigDecimal latitude;



    @ApiModelProperty("店铺Logo")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 512,message = "80407023")
    private String logo;

    @ApiModelProperty("一级分类")
    @NotNull(message = "80000007")
    private Integer oneCategory;

    @ApiModelProperty("二级分类")
    @NotNull(message = "80000007")
    private Integer twoCategory;

    @ApiModelProperty("电话")
    @NotBlank(message = "80000007")
    @AccountCheck()
    private String phone;
    @ApiModelProperty("国际号")
    //@AccountCheck
    private Integer areaCode;

    @ApiModelProperty("验证码")
    private String code;


    @ApiModelProperty("城市")
    private String city;



}
